
cmake_minimum_required(VERSION 3.10.2)

project("ndkinclude")

message("CMAKE_SOURCE_DIR=" ${CMAKE_SOURCE_DIR})

add_library(add
        SHARED
        IMPORTED)

set_target_properties(add
        PROPERTIES IMPORTED_LOCATION
        ${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}/libadd.so)

add_library(
        native-lib
        SHARED
        native-lib.cpp)


find_library(
        log-lib
        log)

target_link_libraries(
        native-lib
        ${add}
        ${log-lib})